package group.hhsw.feign.clients;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient("userservice")
public interface UserClient {

    @GetMapping("/user/getArea/{id}")
    String getArea(@PathVariable("id") Long id);

    @GetMapping("/user/getLabel/{id}")
    String getLabel(@PathVariable("id") Long id);

    @GetMapping("/user/checkLogin")
    Boolean checkLogin(@RequestHeader("Authorization") String token);

    @GetMapping("/user/whitelistDetection/{id}")
    Boolean checkWhitelist(@PathVariable Long id);

}
